/** 表数据处理控件 * */
document.write('<script type="text/javascript" src="' + context
		+ '/system/tablequery/js/tablehandler.js"></script>');

function renderOQExtListHeader(value, cellmeta, record, rowIndex, columnIndex,
		store) {
	var cm = OgetGridCm('gzkclist');
	var fieldName = cm.getDataIndex(columnIndex);
	if (fieldName == 'CKID') {
		if (value == '1') {
			return '库房一';
		} else if (value == '2') {
			return '库房二';
		}
	} else if (fieldName == 'CKDATE') {
		return formatDate(value);
	} else if (fieldName == 'SP') {
		var resultString = String
				.format(
						'<a title="资产入库" href="javascript:void(0);" onclick="javascript:handleCK(\'{0}\',\'{1}\',\'{2}\',\'{3}\',\'{4}\');">{5}</a>',
						record.data['GZID'], record.data['GZNAME'],
						record.data['TYPENAME'], record.data['GZCODE1'],
						record.data['CKID'], '库存调配');
		return resultString;
	}

	return value;
}